package com.shj.model;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * (SysRole)实体类
 *
 * @author makejava
 * @since 2020-03-12 12:53:49
 */
@Getter
@Setter
public class SysRole implements Serializable {
    private static final long serialVersionUID = 279846795220857423L;
    /**
    * 角色id
    */
    @NotNull(message = "角色编号不能为空")
    private String roleId;
    /**
    * 角色名称
    */
    @NotNull(message = "角色名字不能为空")
    private String roleName;
    /**
     * 角色拥有的权限
     */
    private List<SysRoleMenu> menus;
    /**
     * 前端传回的角色勾选权限
     */
    private List<String> checkList;

    @Override
    public String toString() {
        return "SysRole{" +
                "roleId='" + roleId + '\'' +
                ", roleName='" + roleName + '\'' +
                '}';
    }
}